package com.guo.pet_store.admin.service;

import com.guo.pet_store.admin.pojo.Pet;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.lang.reflect.Type;
import java.util.List;

public interface PetService {
    Page<Pet> listPets(Pageable pageable);

    Pet addPet(Pet pet);
    Pet getOnePet(Long id);
    List<Pet> listPets();
    List<Pet> getPetsByType(Long id);
    void deleteAPet(Long id);
    List<Pet> listPetsOnSale();
    List<Pet> searchPets(String search,String likeSearch);
    List<Pet> petsByParentType(Long parentTypeId);
    void setCount(int pet_id,long shopCarId,int count);

}
